<template>
  <div class="box">
    <div class="content">
      <!-- <h2>主页页面-布局</h2> -->
      <router-view />
    </div>
    <van-tabbar v-model="active" route>
      <van-tabbar-item to="/main/home" icon="home-o">首页</van-tabbar-item>
      <van-tabbar-item to="/main/cates" icon="apps-o">分类</van-tabbar-item>
      <van-tabbar-item to="/main/scar" icon="shopping-cart-o"
        >购物车</van-tabbar-item
      >
      <van-tabbar-item to="/main/mine" icon="contact">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  data() {
    return {
      active: 0,
    };
  },
};
</script>

<style scoped>
.content {
  width: 100%;
  height: 100%;
}
</style>